package Route;


public class Legatura implements Comparable<Legatura>, Continut {

	final Statie start, end;
	final int durata;

	public Legatura(final Statie start, final Statie end, final int durata) {
		this.start = start;
		this.end = end;
		this.durata = durata;
	}

	public int compareTo(final Legatura l) {
		return this.durata - l.durata;
	}

	public Statie getStart() {
		return start;
	}

	public Statie getEnd() {
		return end;
	}

	public int getDurata() {
		return durata;
	}
}